package com.hx.observer.event;

import com.hx.observer.event.mouseevent.Mouse;
import com.hx.observer.event.mouseevent.MouseEventCallback;
import com.hx.observer.event.mouseevent.MouseEventType;

/**
 * @author Huathy
 * @date 2021-09-14 21:55
 * @description
 */
public class MouseEventTest {
    public static void main(String[] args) {
        MouseEventCallback callback = new MouseEventCallback();
        Mouse mouse = new Mouse();
        mouse.addLisenter(MouseEventType.ON_CLICK, callback);
        mouse.click();
    }
}
